package ophiux.wechatpay.sdk.common.utils;
import java.util.List;


public class ListUtil {
	
	/**
	 *If the array is empty, the array is undefined, 
	 *then back into the true value, otherwise false
	 */
	public static <T> boolean isBlank(List<T> list){
		boolean flag=false;
		try {
			if(list==null||list.size()==0){
				flag=true;
			}
		} catch (Exception e) {
			flag=true;
		}
		return flag;
	}
	/**
	 *If the contents of the array is not empty and the array is undefined, 
	 *then back into the true value, otherwise false
	 * @param list
	 * @return
	 */
	public static <T> boolean isNotBlank(List<T> list){
		boolean flag=true;
		try {
			if(list==null||list.size()==0){
				flag=false;
			}
		} catch (Exception e) {
			flag=false;
		}
		return flag;
	}
	

}
